﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace MT.ControlLibrary.Controls
{
    public class RadioBtnWithIconAndHint:RadioButton
    {
        //定义图标依赖属性
        public static readonly DependencyProperty IconProperty = DependencyProperty.Register("Icon", typeof(ImageSource), typeof(RadioBtnWithIconAndHint), new PropertyMetadata(null));

        public ImageSource Icon
        {
            get { return (ImageSource)GetValue(IconProperty); }
            set { SetValue(IconProperty, value); }
        }
        
        static RadioBtnWithIconAndHint()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(RadioBtnWithIconAndHint), new FrameworkPropertyMetadata(typeof(RadioBtnWithIconAndHint)));
        }
    }
}
